<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script>
//alert(Math.ceil(-9.8));			//向上取整
alert(Math.floor(4.9999));				//向下取整
</script>
</head>

<body>
</body>
</html>
